﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///Line 的摘要说明
/// </summary>
public class Line
{
    private String _lineName;

    private Boolean _alarm = false; //存在综合报警

    public Boolean Alarm
    {
        get { return _alarm; }
        set { _alarm = value; }
    }
    private String _realtimeCcurrent="-"; //实时电流
    private String _conductorTemperature = "-"; //导线温度
    private String _environmentTemperature = "-"; //环境温度
    private String _onlineStatus = "-"; //在线状态
    private String _realtimePower = "-"; //实时功率
    private String _totalPower = "-"; //总功率
    private String _thermalLimit = "-"; //热稳限额
    private String _powerLimit = "-"; //功率限额
    private String _time="-";//采样时间

    public String Time
    {
        get { return _time; }
        set { _time = value; }
    }
    public Line(String ln, String t ,String rc, String ct, String et, String os, String rp, String tp, String tl, String pl)
	{
        this._lineName = ln;
        this._time = t;
        this._realtimeCcurrent = rc;
        this._conductorTemperature = ct;
        this._environmentTemperature = et;
        this._onlineStatus = os;
        this._realtimePower = rp;
        this._totalPower = tp;
        this._thermalLimit = tl;
        this._powerLimit = pl;
	}
    public Line(String name)
    {
        this.LineName = name;
    }

    public String LineName
    {
        get { return _lineName; }
        set { _lineName = value; }
    }

    public String RealtimeCcurrent
    {
        get { return _realtimeCcurrent; }
        set { _realtimeCcurrent = value; }
    }


    public String ConductorTemperature
    {
        get { return _conductorTemperature; }
        set { _conductorTemperature = value; }
    }


    public String EnvironmentTemperature
    {
        get { return _environmentTemperature; }
        set { _environmentTemperature = value; }
    }


    public String OnlineStatus
    {
        get { return _onlineStatus; }
        set { _onlineStatus = value; }
    }


    public String RealtimePower
    {
        get { return _realtimePower; }
        set { _realtimePower = value; }
    }


    public String TotalPower
    {
        get { return _totalPower; }
        set { _totalPower = value; }
    }


    public String ThermalLimit
    {
        get { return _thermalLimit; }
        set { _thermalLimit = value; }
    }


    public String PowerLimit
    {
        get { return _powerLimit; }
        set { _powerLimit = value; }
    }

	
}
